<?php
    #-------------------------------------------------------------#
	# This file is part of the Kumomado - Virtual Window Platform #
	# for PHP. (c) 2009 Tsai, Min Che <tirme0812@gmail.com>       #
	# Please visit http://www.kumomado.org/ for more information. #
	#                                                             #
	# This software is licensed under the GNU License v3. Please  #
	# view the LICENSE file for the full text of this license.    #
    #-------------------------------------------------------------#

	Kumomado::load('Application.Controller.KumomadoApplicationController');
	/**
	 * @package applications
	 * @subpackage member
	 * @author Tsai, Min Che
	 */
	class MemberGroupController extends KumomadoApplicationController {
		public function Action_Main($params) {
			//$this->model->getList();
			$this->view->main();
		}
		public function Action_Form($params) {
			if ($params['status'] == 'edit') {
				$action = 'edit';
			} else {
				$action = 'add';
			}
			$groups = $this->model->getList();
			$this->view->assign('groups', $groups);
			$this->view->form($action);
		}
		public function insertGroup($params) {
			alex($params);
		}
	}
?>